package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.Goods;
import com.cskaoyan.mall.model.GoodsParam;
import com.cskaoyan.mall.model.Spec;
import com.cskaoyan.mall.model.Type;

import java.util.List;

/**
 * @PackgeName: com.cskaoyan.mall.dao
 * @ClassName: GoodsDao
 * @Author: admin
 * Date: 2020/5/3 21:06
 * project name: Javaproject1
 * @Version:
 * @Description:
 */
public interface GoodsDao {


    List<Type> getType();

    List<Goods> getGoodsByType(String typeId);

    int addGoods(GoodsParam goodsParam);

    void addSpecList(int goodsId, List<Spec> specList);
}
